//
//  WSAlertManager.h
//  WSAlertView
//
//  Created by zhangcong on 2019/3/19.
//  Copyright © 2019年 zhangcong. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WSAlertView.h"


@interface WSAlertManager : NSObject

+ (WSAlertManager *)shared;
/**
 简易弹出框,从底部弹出 不带 X 号的

 @param contentView 自定义弹出view
 */
- (WSAlertView *)alertWithCustomView:(UIView *)contentView;

/**
 * show:withType:     弹出视图
 * @param contentView 需要弹出的视图
 * @param closeStyle       关闭模式
 */
- (WSAlertView *)alertWithCustomView:(UIView *)contentView closeStyle:(CloseStyle)closeStyle;

/**
 *  show:withType:animationFinish:dismissHandle: 弹出视图
 *  @param contentView 需要弹出的视图
 *  @param style       弹出模式
 *  @param show        弹出回调
 *  @param dismiss     消失回调
 *
 */
- (WSAlertView *)alertWithCustomView:(UIView *)contentView withType:(WSAlertViewStyle)style closeStyle:(CloseStyle)closeStyle animationFinish:(showBlock)show dismissHandle:(dismissBlock)dismiss;


/**
 当前window是否存在弹框

 @return <#return value description#>
 */
- (BOOL)existViewAlert;


/**
 取消所有弹框
 */
- (void)dismissAllAlertView;
@end

